package com.zrx.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zrx.springboot.entity.enums.Category;
import com.zrx.springboot.entity.enums.Suit;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 *
 * @Description: 图书实体类
 */
@Data

@TableName(value = "bs_book")
@EqualsAndHashCode(callSuper = false)
public class Book extends Model<Book> implements Serializable {
    //id自动增加
    @TableId(type = IdType.AUTO)
    private Integer id;
    //编码
    private String isbn;
    //书名
    private String name;
    //作者
    private String author;
    //出版社
    private String publisher;
    //时间
    private Timestamp publishDate;
    //原价
    private double oldPrice;
    //现价
    private double newPrice;
    //作者地址
    private String   authorLoc;
    //套装
    private Suit     suit;
    //分类
    private Category category;
    //介绍
    private String   info;
    //链接
    private String imgUrl;
}
